import java.io.BufferedReader;
import java.io.IOException;


public class MsgThread extends Thread

{
	String msg;
	BufferedReader in;
	MsgThread(BufferedReader in)
	{
		this.in=in;
	}
	public void run()
	{
		while(!isInterrupted())
		{
			try {
				MsgThread.sleep(800);
			} catch (InterruptedException e1) {
				
			}
			try 
			{
				msg=in.readLine();
			} 
			catch (IOException e) 
			{
				
			}
		}
	}

}
